package com.example.dreamlist2.goal;

import java.io.Serializable;

import cn.bmob.v3.BmobObject;
import cn.bmob.v3.datatype.BmobDate;

public class HabitItem extends BmobObject implements Serializable {
    private String uid;//属于哪个用户
    //private String hid;
    private String content;//内容
    private int times;//打卡次数

    public void initTimes() {this.times = 0;}

    public void setUid(String uid) {
        this.uid = uid;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setTimes(int times) { this.times = times; }

    //public void setHid(String hid) { this.hid = hid; }

    public String getUid() {
        return uid;
    }

    public String getContent() {
        return content;
    }

    public int getTimes() {
        return times;
    }

    //public String getHid() {return hid;}

    public String getStringTimes() {
        String time = String.valueOf(this.times);
        return "已打卡"+time+"次";
    }

    public int addTimes() {
        return ++times;
    }
}
